import http from "@/utlis/request"

export const login = (data) => {
    return http.post("/user/pub/login", data)
}
export const edit = (data, headers) => {
    return http.post("/user/kh/resetPwd", data, {
        headers: headers
    })
}
export const editforget = (data) => {
    return http.post("/user/pub/sendSmsCode", data)
}
// 地址列表
export const getList = (data) => {
    return http.post("web/kh/address/getList", data)
}
// 添加地址
export const addUpdate = (data) => {
    return http.post("web/kh/address/addUpdate", data)
}
// 删除地址
export const deletes = (data) => {
    return http.post("web/kh/address/delete", data)
}

// 设置默认地址
export const setDefault = (data) => {
    return http.post("web/kh/address/setDefault", data)
}
// 获取默认地址
export const getDefault = (data) => {
    return http.post("web/kh/address/getDefault", data)
}
// 收货地址详情
export const getInfo = (data) => {
    return http.post("web/kh/address/getInfo", data)
}
